#include <QCoreApplication>
#include "rpc_client.hpp"

#include <QDebug>

using namespace rest_rpc;
using namespace rpc_service;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    rpc_client client("127.0.0.1", 9000);
    client.connect();

    int result = client.call<int>("add", 1, 2);

    qDebug()<<result;

    result = client.call<int>("add", 1, 3);

    qDebug()<<result;
    client.run();

    return a.exec();
}
